# PCA9545驱动测试构建文件

test_pca9545_sources = [
  '../../../main.cpp',
  '../../internal/test_utils/mock_bus.cpp',
  'test_pca9545.cpp',
  '../../../../drivers/chip/pca9545/pca9545.cpp',
  '../../../../drivers/chip/pca9545/interface/i_pca9545.cpp',
] + chip_interface_sources

test_pca9545 = executable(
  'test_pca9545',
  test_pca9545_sources,
  include_directories: [
    include_directories('.'),
    include_directories('../../../..'),
    include_directories('../../../../drivers/chip/pca9545'),
    include_directories('../../../../drivers/chip'),
    include_directories('../../../../drivers/internal'),
    include_directories('../../../../include'),
    include_directories('../../../../gen'),
  ],
  dependencies: [
    gtest_dep,
    test_utilities_dep,
    libmcpp_deps,
    internal_dep,
    test_utils_dep,
    pca9545_dep,
  ],
  cpp_args: ['-DUNIT_TEST'],
  install: false,
)

test('test_pca9545', test_pca9545, timeout: 300, suite: 'pca9545')
